<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<style>
<!--
   .page a:link,.page a:VISITED{
     border:1px solid #666;
     text-decoration: none;
     padding:5px;
   } 
   .page a:hover{
   
     text-decoration: underline;
   }
    .texthidden{
     width:500px;
     overflow:hidden;
     text-overflow:ellipsis;
     white-space:nowrap;
   }
    .init{
            color:gray;
            /*font-style:italic;*/
            width:200px;
            height:40px;
        }
        .highlight{
            color:black;
            /*font-style:normal;*/
            width:200px;
        }
-->
</style>
<div style='margin-bottom:10px;margin-top: 10px;'>
<div class='span2 news1' style='height:140px;'>
  <div class=""> 
  <ul class='menu nav nav-tabs nav-stacked'>
  <li id='all'><a href='<%=basePath%>filedownload/filedownloadindex/1'>全部</a></li> 
  <c:forEach items="${ddts }" var="i">
      
        
       <li id='file${i.ddtypeId }'><a href='<%=basePath%>filedownload/filedownloadindex_${i.ddtypeId}/1'>${i.ddtypeName }</a></li>  
     </c:forEach>
    
     
  </ul>
</div>
</div>
     <!-- 相关政策文档下载 -->
     <div class="span9" id='newsRe' style='background-color: #fff;height:500px;border:1px solid #ddd; '>
   
	<form action="<%=basePath%>filedownload/search/1" method="post">
		<input type="text" name='title' value="检索信息" id='search' class="init search"
			style='height: 30px; margin-top: 10px;'> <input class='btn'
			type="submit" value="找找看">
	</form>
	
<c:if test="${not empty allnews }">
      <div  class='span12' id='news ' style='padding:0px;margin-left:0px;'>
         <div style='-webkit-border-radius:10px;' class=' border1'>
            <table class="table table-hover" style="margin-top:10px;">
            <tbody>
			<c:forEach items="${allnews }" var="news">
			
			<tr>
			<td ><img src="<%=basePath %>images/li1.gif" style='margin-right:5px;'/>
			<div class='texthidden' style='margin-left:25px;margin-top:-15px;'><a class='downloadA' href="<%=basePath %>filedownload/download" filename='${news.dataPath }' title='${news.dataName }'>${news.dataName }</a></div></td>
			<td align="center" style='color:#990000;font-weight: bold;'>[${news.dataUploadTime }]</td>
			
			</tr>
			
			</c:forEach>
			</tbody>
			</table>
		<div id="" class="span12 " style='margin-left:35%;margin-top:10px;'>
		
	   <p> <a href='<%=basePath%>filedownload/filedownloadindex/1 '>【首	页】</a>
	   <a href='<%=basePath%>filedownload/filedownloadindex/${pageNow-1 } ' id="first">【上一页】</a>
	   <a  class="pagenow">
	   <strong style='color:red;font-size:16px;'>${pageNow}</strong></a>...
	   <a href='<%=basePath%>filedownload/filedownloadindex/${pageCount }'>${pageCount }</a>
	   <a href='<%=basePath%>filedownload/filedownloadindex/${pageNow+1 } ' id="next">【下一页】</a>
	   <a href='<%=basePath%>filedownload/filedownloadindex/${pageCount } '>【末	页】</a>
	   </p>
	</div>
         </div>
         
	<script type="text/javascript">
	   $(function(){
		   var page = ${pageNow};
		   var pageCount = ${pageCount};
		   if(parseFloat(page)+1 >parseFloat(pageCount))
			   {
			       $("#next").hide();
			   }
		   if(parseFloat(page)-1 <1)
			   {
			     $("#first").hide();
			   }else{
				   $("#first").show();
			   };
			   
			  
	   });
	</script>
      </div>
      </c:if>
      <c:if test="${empty allnews }">
         <h3 style="color:red">暂没文件被上传，请上传。</h3>
      </c:if>
    </div>
   
   </div>